package com.zjw.core.generic;

import java.util.ArrayList;
import java.util.List;

public class GenericTest {

    public <T extends Number> void test(List<T> dest, List<T> src){

    }

    public void test2(List<? extends Number> dest, List<? extends Number> src){

    }

    public static void main(String[] args) {
        Class c1 = new ArrayList<Integer>().getClass();
        Class c2 = new ArrayList<String>().getClass();
        System.out.print(c1 == c2); //true 类型擦除,运行时是同一种类型
    }

}
